package com.yxinsur.imc.web.controller.business;

import java.util.List;

import com.yxinsur.imc.business.vo.select.SelectRegion;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.yxinsur.imc.common.annotation.Log;
import com.yxinsur.imc.common.core.controller.BaseController;
import com.yxinsur.imc.common.core.domain.AjaxResult;
import com.yxinsur.imc.common.enums.BusinessType;
import com.yxinsur.imc.business.domain.ImcRegion;
import com.yxinsur.imc.business.service.IImcRegionService;
import com.yxinsur.imc.common.utils.poi.ExcelUtil;
import com.yxinsur.imc.common.core.page.TableDataInfo;

/**
 * 地区Controller
 * 
 * @author imc
 * @date 2021-03-23
 */
@Api(value="省市区信息接口服务",tags={"8.省市区信息接口服务"})
@RestController
@RequestMapping("/business/region")
public class ImcRegionController extends BaseController
{
    @Autowired
    private IImcRegionService imcRegionService;

    /**
     * 获取省市区下拉列表数据
     */
    @ApiOperation("省市区下拉列表数据获取[全部]")
    @GetMapping(value = "/select/data")
    public List<SelectRegion> selectDataList()
    {
        return this.imcRegionService.selectDataList();
    }
}
